﻿<Window x:Class="CoreRay.Client.SettingsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Core Ray - Settings" Height="580" Width="511" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <StackPanel>
        <TabControl Margin="12,12,12,12" Height="489">
            <TabItem Header="Common" Name="commonSettings">
                <StackPanel>
                    <GroupBox Header="Resolution" Margin="6,6,6,0" Name="resolutionGroupBox" VerticalAlignment="Top">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="50" />
                                <ColumnDefinition Width="70" />
                                <ColumnDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <Label HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">Width:</Label>
                            <TextBox Height="23" HorizontalAlignment="Left" Name="resolutionWidthTextBox" Width="60" Grid.Row="1" Grid.Column="1" />
                            <Label HorizontalAlignment="Right" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">Height:</Label>
                            <TextBox Height="23" HorizontalAlignment="Left" Name="resolutionHeightTextBox" Width="60" Grid.Row="2" Grid.Column="1"  />
                            <Button Grid.Row="0" Grid.Column="2" Margin="5" Name="resolution640Button" Click="resolutionButton_Click">640x480</Button>
                            <Button Grid.Row="0" Grid.Column="3" Margin="5" Name="resolution800Button" Click="resolutionButton_Click">800x600</Button>
                            <Button Grid.Row="0" Grid.Column="4" Margin="5" Name="resolution1024Button" Click="resolutionButton_Click">1024x768</Button>
                            <Button Grid.Row="1" Grid.Column="2" Margin="5" Name="resolution1280Button" Click="resolutionButton_Click">1280x1024</Button>
                            <Button Grid.Row="1" Grid.Column="3" Margin="5" Name="resolution1440Button" Click="resolutionButton_Click">1440x900</Button>
                            <Button Grid.Row="1" Grid.Column="4" Margin="5" Name="resolution1600Button" Click="resolutionButton_Click">1680x1050</Button>
                            <Button Grid.Row="2" Grid.Column="2" Margin="5" Name="resolution720PButton" Click="resolutionButton_Click">1280x720 (HD)</Button>
                            <Button Grid.Row="2" Grid.Column="3" Margin="5" Name="resolution1080PButton" Click="resolutionButton_Click">1920x1080 (HD)</Button>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Input" Margin="6,6,6,0">
                        <StackPanel Orientation="Horizontal">
                            <TextBox Name="inputTextBox" Width="350" Margin="0 0 4 0" ></TextBox>
                            <Button Click="inputBrowseButton_Click">Browse</Button>
                        </StackPanel>
                    </GroupBox>
                    <GroupBox Header="Output" Margin="6,6,6,0">
                        <StackPanel Orientation="Horizontal">
                            <TextBox Name="outputTextBox" Width="350" Margin="0 0 4 0" ></TextBox>
                            <Button Click="outputBrowseButton_Click">Browse</Button>
                        </StackPanel>
                    </GroupBox>
                </StackPanel>
            </TabItem>
            <TabItem Header="Render Settings" Name="renderSettings">
                <StackPanel>
                    <GroupBox Header="Render Accelerator" Margin="6,6,6,0">
                        <StackPanel Margin="6,6,6,6">
                            <CheckBox Name="renderAcceleratorCheckBox" Margin="0,0,0,6" Grid.Row="0" Unchecked="renderAcceleratorCheckBox_Checked" Checked="renderAcceleratorCheckBox_Checked">Use render accelerator</CheckBox>
                            <ComboBox Name="renderAcceleratorComboBox" SelectedIndex="0" IsEnabled="False" Grid.Row="1">
                            </ComboBox>
                        </StackPanel>
                    </GroupBox>
                </StackPanel>
            </TabItem>
        </TabControl>
        <StackPanel Orientation="Horizontal" Margin="12 0 12 12" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">
            <Button HorizontalAlignment="Right" Name="renderButton" IsDefault="True" VerticalAlignment="Bottom" Margin="0 0 4 0" Height="24" Width="65" Click="renderButton_Click">Render</Button>
            <Button HorizontalAlignment="Right" Name="exitButton" VerticalAlignment="Bottom" Height="24" Width="65" Click="exitButton_Click">Exit</Button>
        </StackPanel>
    </StackPanel>
</Window>
